﻿namespace Shop.Core.YOP
{
    /// <summary>
    /// 转账通知推向
    /// 易宝rest/v1.0/account/pay/order通知
    /// </summary>
    public class TransferNotifyDto
    {
        /// <summary>
        /// 收款账户-开户行编码
        /// </summary>
        public string bankCode { get; set; }

        /// <summary>
        /// 付款订单有明确结果（如订单状态为 SUCCESS/FAIL）时的时间
        /// </summary>
        public string finishTime { get; set; }

        /// <summary>
        /// 银行通知冲退的时间
        /// </summary>
        public string reverseTime { get; set; }

        /// <summary>
        /// 易宝支付系统生成的付款订单号
        /// </summary>
        public string orderNo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string fee { get; set; }

        /// <summary>
        /// 易宝账户扣账金额（包含付款金额和手续费（若有））
        /// </summary>
        public string debitAmount { get; set; }

        /// <summary>
        /// 商户请求号
        /// </summary>
        public string requestNo { get; set; }

        /// <summary>
        /// 返回收款账户-开户名称
        /// </summary>
        public string receiverAccountName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string receiveAmount { get; set; }

        /// <summary>
        /// 易宝接收付款请求后创建订单时间
        /// </summary>
        public string orderTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string orderAmount { get; set; }

        /// <summary>
        /// 平台商商编
        /// </summary>
        public string feeUndertakerMerchantNo { get; set; }

        /// <summary>
        /// 收款账户-银行账号
        /// </summary>
        public string receiverAccountNo { get; set; }

        /// <summary>
        /// 当付款失败时会返回失败原因
        /// </summary>
        public string failReason { get; set; }

        /// <summary>
        /// 到账类型
        /// REAL_TIME:实时到账
        /// TWO_HOUR:2 小时到账
        /// NEXT_DAY:次日到账
        /// </summary>
        public string receiveType { get; set; }

        /// <summary>
        /// 易宝支付分配的的商户唯一标识
        /// </summary>
        public string merchantNo { get;set; }

        /// <summary>
        /// 状态
        /// SUCCESS:已到账FAIL:失败（该笔订单付款失败，可重新发起付款）
        /// </summary>
        public string status { get; set; }  
    }
}
